<link rel="stylesheet" href="/css/Module_citation/index.css">
<script src="/js/Module_citation/index.js"></script>

<?php if(count($researchs)==0 && count($researchsoverlay)==0 && count($researchsnonbiological)==0 ):?>
    <?php echo "No Data Found"; return;?>
<?php  endif ?>




<?php if(count($researchsoverlay)>0):?>

<?php foreach($researchsoverlay as $researchoverlay):?>
<div id="divsearchdata">

    <table class="Search_Results"  name="Result_Table" id ="<?php echo $researchoverlay->getId()?>" onclick="tbvalue(this)">
        <tr>
            <td>

                <?php echo $researchoverlay->getCitation() ?>
            </td>
        </tr>

    </table>
</div>
<p>
    <?php endforeach?>
    <?php echo "Overlay Data"; ?>
<?php endif?>



<?php $tmp=false ?>
<?php if(count($researchs)>0):?>

<?php foreach($researchs as $research):?>
<?php $tmp=false ?>
    <?php foreach($researchsoverlay as $researchoverlay):?>
        <?php if ($research->getId()==$researchoverlay->getId()): ?>
            <?php $tmp=true; ?>
            <?php break; ?>
        <?php endif ?>
    <?php endforeach?>
<?php if ($tmp==false): ?>
<div id="divsearchdata">

    <table class="Search_Results"  name="Result_Table" id ="<?php echo $research->getId()?>" onclick="tbvalue(this)">
        <tr>
            <td>

                <?php echo $research->getCitation() ?>
            </td>
        </tr>

    </table>
</div>
<p>
<?php endif ?>
    <?php endforeach?>
        <?php echo "Biological Data"; ?>
<?php endif?>



    <?php if(count($researchsnonbiological)>0):?>

<?php foreach($researchsnonbiological as $researchnb):?>
<div id="divsearchdata">

    <table class="Search_Results"  name="Result_Table" id ="<?php echo $researchnb->getId()?>" onclick="tbvalue(this)">
        <tr>
            <td>

                <?php echo $researchnb->getCitation() ?>
            </td>
        </tr>

    </table>
</div>
<p>
    <?php endforeach?>

    <?php echo "Non Biological Data"; ?>
<?php endif?>
